<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>流程抄送列表</title>
     <link href="Scripts/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="Scripts/bootstrap/css/font-awesome.css" rel="stylesheet">
 	<link href="Style/skin/css/style.css" rel="stylesheet" type="text/css" />
	<link href="Style/skin/css/animate.css" rel="stylesheet" type="text/css" />
	</head>
	<body class="gray-bg">
		 
	<div class="wrapper wrapper-content animated fadeInRight">
		
                    <div class="ibox-content">
                    	  <table id="Table1" class="table table-striped">
                    	  	 <thead>
								<tr>
								<th>#</th>
                    <th>工作流程 </th>
                    <th>节点 </th>
                    <th>抄送人 </th>
                    <th>标题 </th>
                    <th>内容 </th>
                    <th>日期 </th>
								</tr>
					         </thead>
					       <tbody id="Rows">
			</tbody>
					    </table>
                    </div>
                </div>
          
		
		<script type="text/javascript" src="./Scripts/bootstrap/js/jquery.min.js"></script>
    <script type="text/javascript" src="./Scripts/bootstrap/js/bootstrap.min.js"></script>
    <script src="./Scripts/QueryString.js" type="text/javascript"></script>
    <script src="./Scripts/config.js" type="text/javascript"></script>
     <script src="Style/skin/layui/layer.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript" >
        //打开默认窗口
        function WinOpenFull(url) {
            layer.open({
				  skin: 'layer-class',	
				  type: 2, 
				  title: '抄送', 
				  area:['96%','90%'],
				  content: url
				});
        }
        //页面启动函数.
        $(function () {

            $.ajax({
                type: 'post',
                async: true,
                url: Handler + "?DoType=CC_Init&m=" + Math.random(),
                dataType: 'html',
                success: function (data) {

                    if (data.indexOf('err@') == 0) {
                        alert(data);
                        return;
                    }

                    //转换.
                    data = JSON.parse(data);
                    var row = "";
                    for (var i = 0; i < data.length; i++) {
                        var batchUrl = "";
                        var url = "";

                            batchUrl = './WFRpt.htm?FK_Flow=' + data[i].FK_Flow + '&FK_Node=' + data[i].FK_Node + '&WorkID=' + data[i].WorkID + '&FID=' + data[i].FID;
                            url = '../WF/WorkOpt/CCCheckNote.htm?WorkID=' + data[i].WorkID + '&FK_Flow=' + data[i].FK_Flow + '&FID=0&FK_Node=' + data[i].FK_Node;

                        row += "<tr>";
                        row += "<td>" + i + "</td>";
                        row += "<td>" + data[i].FlowName + "</td>";
                        row += "<td>" + data[i].NodeName + "</td>";
                        row += "<td>" + data[i].Rec + "</td>";
                        //row += "<td><a href='" + batchUrl + "' target=_blank >" + data[i].Title + "</a></td>";
                        row += "<td><a href='#'  onclick='WinOpenFull(\"" + batchUrl + "\")'>" + data[i].Title + "</a></td>";
                        row += "<td>" + data[i].Doc + "</td>";
                        row += "<td>" + data[i].RDT + "</td>";
                        //row += "<td><a href='" + url + "' target=_blank >回复</a></td>";
                        //row += "<td><a href='#' onclick='WinOpenFull(\"" + url + "\")' >回复</a></td>";
                        row += "</tr>";
                    }
                    $("#Rows").html(row);
                    return;
                }
            });
        });
    </script>
</body>
</html>
